package com.caregiver.watch.business.care.model.dto;

import com.caregiver.watch.business.care.model.vo.FenceSettingDetailVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @description: 围栏生效的照护人信息
 * @program: caregiver-watch
 * @author: 疆戟
 * @create: 2025-10-06 11:05
 */
@Data
@Schema(description = "被照护人信息")
public class FenceRecipientInfo {

    @Schema(description = "被照护人ID")
    private Long recipientId;

    @Schema(description = "被照护人设备UUID")
    private String recipientDeviceUuId;

    @Schema(description = "被照护人姓名")
    private String recipientName;
    /**
     * 被照护人头像
     */
    @Schema(description = "被照护人头像")
    private String recipientAvatar;

    public static FenceRecipientInfo build(Long recipientId, String recipientDeviceUuId, String recipientName, String recipientAvatar) {
        FenceRecipientInfo recipientInfo = new FenceRecipientInfo();
        recipientInfo.recipientId = recipientId;
        recipientInfo.recipientDeviceUuId = recipientDeviceUuId;
        recipientInfo.recipientName = recipientName;
        recipientInfo.recipientAvatar = recipientAvatar;
        return recipientInfo;
    }
}
